ltbConfmapSkyScale={
	[1]={sn=1,i_bottomScale=2,i_upScale=2},

}

ltbConfmapSkyScale.get = function( sn )
	local liMax = table.maxn( ltbConfmapSkyScale )
	for i = 1, liMax do
		if sn == ltbConfmapSkyScale[i].sn then
			return ltbConfmapSkyScale[i]
		end
	end

	return nil
end

ltbConfmapSkyScale.getBy = function( ... )
	local ltbCondition = { }
	local ltbResult = { }

	local arg = { ... }
	for k, v in ipairs( arg ) do
		ltbCondition[k] = v
	end

	local liMax		= table.maxn( ltbCondition )
	local liMaxTb	= table.maxn( ltbConfmapSkyScale )
	if liMax % 2 ~= 0 then
		return nil
	end

	local liIndex = 1
	for liIndex = 1, liMaxTb do
		local lbIsMatch = true

		for j = 1, liMax, 2 do
			local lstrKey = ltbCondition[j]
			local lVaule = ltbCondition[j+1]

			if ltbConfmapSkyScale[liIndex][lstrKey] ~= lVaule then
				lbIsMatch = false
				break
			end
		end

		if lbIsMatch then
			return ltbConfmapSkyScale[liIndex]
		end
	end

	return nil
end

ltbConfmapSkyScale.findAll = function( )
	return ltbConfmapSkyScale
end
